package com.atm.thirdplt.common.core.domain.his;

import com.thoughtworks.xstream.annotations.XStreamAlias;

import java.io.Serializable;
import java.util.Date;

/**
 * his工作人员字典实体
 *
 * @author atm
 */
@XStreamAlias("Row")
public class HisUsers implements Serializable {

    private static final long serialVersionUID = 1L;
    @XStreamAlias("UserId")
    private String userId;
    @XStreamAlias("UserCode")
    private String userCode;
    @XStreamAlias("UserName")
    private String userName;
    @XStreamAlias("Sex")
    private String sex;
    @XStreamAlias("UserDept")
    private String userDept;
    @XStreamAlias("UserDeptName")
    private String userDeptName;
    @XStreamAlias("UserJob")
    private String userJob;
    @XStreamAlias("CreateDate")
    private Date createDate;
    @XStreamAlias("InputCode")
    private String inputCode;

    private String reserved01;

    private Integer syncFlag;

    //CA自动签名ID
    private String caUserId;

    public String getCaUserId() {
        return caUserId;
    }

    public void setCaUserId(String caUserId) {
        this.caUserId = caUserId;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getUserDeptName() {
        return userDeptName;
    }

    public void setUserDeptName(String userDeptName) {
        this.userDeptName = userDeptName;
    }

    public Integer getSyncFlag() {
        return syncFlag;
    }

    public void setSyncFlag(Integer syncFlag) {
        this.syncFlag = syncFlag;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getUserDept() {
        return userDept;
    }

    public void setUserDept(String userDept) {
        this.userDept = userDept == null ? null : userDept.trim();
    }

    public String getInputCode() {
        return inputCode;
    }

    public void setInputCode(String inputCode) {
        this.inputCode = inputCode == null ? null : inputCode.trim();
    }

    public String getUserJob() {
        return userJob;
    }

    public void setUserJob(String userJob) {
        this.userJob = userJob == null ? null : userJob.trim();
    }

    public String getReserved01() {
        return reserved01;
    }

    public void setReserved01(String reserved01) {
        this.reserved01 = reserved01 == null ? null : reserved01.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (this == obj) {
            return true;
        }
        if (obj instanceof HisUsers) {
            HisUsers o = (HisUsers) obj;
            return this.userId == o.getUserId();
        }
        return false;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        return result;
    }
}
